package cn.sciento.onelink.sim.aggregative.group.voice.whitelist;

import cn.sciento.onelink.CommonResponse;
import cn.sciento.onelink.LinkRequest;
import cn.sciento.onelink.utils.TransIdUtil;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * 群组语音白名单查询
 * @author waltonlee
 */
@Data
public class SimGroupVoiceWhitelistRequest extends LinkRequest<CommonResponse<SimGroupVoiceWhitelistResult>> {
    private String appId;
    private String token;
    private String groupId;

    public SimGroupVoiceWhitelistRequest(String appId, String token, String groupId) {
        super(Method.GET);
        this.appId = appId;
        this.token = token;
        this.groupId = groupId;
        this.path = "/ec/query/group-voice-whitelist";
        Map<String,Object> bodyMap = new HashMap<String, Object>();
        bodyMap.put("transid", TransIdUtil.generate(appId));
        bodyMap.put("token",token);
        bodyMap.put("groupId",groupId);
        this.setCompleteUrl(this.path,bodyMap);
    }
}
